using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Manager : MonoBehaviour
{
    private static ResourcesManager resources;
    public static ResourcesManager Resources
    {
        get { return resources; }
    }

    private static LuaManager lua;
    public static LuaManager Lua
    {
        get { return lua; }
    }

    private static UIManager ui;
    public static UIManager UI
    {
        get { return ui; }
    }

    private static EntityManager entity;
    public static EntityManager Entity
    { 
        get { return entity; } 
    }

    private static My_SceneManager scene;
    public static My_SceneManager Scene
    {
        get { return scene; }
    }

    private static SoundManager sound;
    public static SoundManager Sound
    {
        get { return sound; }
    }

    private static EventManager eventManager;
    public static EventManager Event
    { get { return eventManager; } }

    private static PoolManager pool;
    public static PoolManager Pool
    { get { return pool; } }

    private static NetManager net;
    public static NetManager Net
    { get { return net; } }

    private void Awake()
    {
        resources = this.gameObject.AddComponent<ResourcesManager>();
        lua = this.gameObject.AddComponent<LuaManager>();
        ui = this.gameObject.AddComponent<UIManager>();
        entity = this.gameObject.AddComponent<EntityManager>();
        scene = this.gameObject.AddComponent<My_SceneManager>();
        sound = this.gameObject.AddComponent<SoundManager>();
        eventManager = this.gameObject.AddComponent<EventManager>();
        pool = this.gameObject.AddComponent<PoolManager>();
        net = this.gameObject.AddComponent<NetManager>();
    }
}